package com.thirteengroup.casemg.Mapper;

import com.thirteengroup.casemg.domain.Employee;
import com.thirteengroup.casemg.domain.queryObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface employeeMapper {

    List<Employee> selectAll();
    void deleteById(Long id);
    Employee selectOne(Long id);
    void update(Employee employee);
    void insert(Employee employee);
    int selectCount();
    List<Employee> selectLimit(queryObject queryObject);
    void batchInsert(@Param("employeeList") List<Employee> employeeList);
}
